//
//  HR_BLELinkTools.m
//  Pods
//
//  Created by xiaoming on 17/07/26.
//
//

#import "HR_BLELinkTools.h"

@implementation HR_BLELinkTools

int (calculate_16)(int num) {
    return [[NSString stringWithFormat:@"%x", num] intValue];
}

unsigned int bytesValueToInt(Byte *bytesValue) {
    unsigned int intV;
    intV = (unsigned int ) (((bytesValue[3] & 0xff)<<24)
                            |((bytesValue[2] & 0xff)<<16)
                            |((bytesValue[1] & 0xff)<<8)
                            |(bytesValue[0] & 0xff));
    return intV;
}

@end
